package com.exercises;

class Exercise223 {

    public static void main(String[] args) {
        System.out.println(12 - 12 / 10 * 10);
    }


    public int countDigitOne(int n) {
        int result = 0;
        while (n > 0) {
            int a = n - n / 10 * 10;
            int b = n / 10;
            if (b == 1) {
                result += a;

            }
        }
        return result;
    }
}
